package com.wlyuan.open.scanner.domain.transport.mapping;

import org.mapstruct.Mapping;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author lijing
 * @description
 */
@Retention(RetentionPolicy.CLASS)
@Mapping(target = "sign.signAt", source = "indexSigntime")
@Mapping(target = "sign.signBy", source = "indexSinger")
@Mapping(target = "sign.signDesc", source = "signDesc")
@Mapping(target = "sign.signType", source = "signType")
@Mapping(target = "sign.tenantId", source = "signTenant")
@Mapping(target = "sign.createAt", source = "signCreateTime")
@Mapping(target = "sign.flowId", source = "signFlowId")

@Mapping(target = "receipt.receiptAt", source = "indexReceiptime")
@Mapping(target = "receipt.receiptBy", source = "receiptBy")
@Mapping(target = "receipt.receiptSignAt", source = "indexVerifysigintime")
@Mapping(target = "receipt.receiptDesc", source = "receiptDesc")
@Mapping(target = "receipt.receiptType", source = "receiptType")
@Mapping(target = "receipt.tenantId", source = "receiptTenant")
@Mapping(target = "receipt.createAt", source = "receiptCreateTime")
@Mapping(target = "receipt.flowId", source = "receiptFlowId")
@Mapping(target = "receipt.receiptReview", source = "receiptReview")
public @interface SignReceiptMapping {
}
